﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Default2 : System.Web.UI.Page
{
    protected void Button1_Click(object sender, EventArgs e)
    {
        Soft_ListIteam1.Content = "自定义控件，按钮点击已响应";
        Response.Write("<script>alert('成功')</script>");
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        //Soft_ListIteam1.ButtonClick += Button1_Click1;
        //或在控件属性中进行设置，OnButtonClick ="Button1_Click"

        //Soft_ListIteam1.ImageUrl = "Images/1.png";
    }

    protected void Button1_Click1(object sender, EventArgs e)
    {
        Response.Write("<script>alert('测试')</script>");
    }
}